package org.example.client;

import org.example.domain.CommonTest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

//value是远程服务的服务名
@FeignClient(value = "offer-service")
public interface ProvideClient {

    //该方法是生产者中注册的方法要一模一样，我们把它放在该接口中
    @GetMapping("/offer")
    String offerService();

    @GetMapping("/offerTest")
    CommonTest offerTestService();
}


